# -*- coding: utf-8 -*-
# 公用配置
DEBUG = True

SQLALCHEMY_BINDS = {
    'adam': 'mysql://adam:116648728gG@127.0.0.1/adam',
    # 'kingdee': "mssql+pyodbc://sa:DJZN123654.@59.49.31.133/K3DBConfiger20221082037581?driver=SQL+Server+Native+Client+11.0"
    'kingdee': "mssql+pyodbc://sa:DJZN123654.@59.49.31.133/K3DBConfiger20221082037581?driver=ODBC Driver 17 for SQL Server"

}

SQLALCHEMY_ECHO = False
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = "mysql://adam:116648728gG@127.0.0.1/adam"
SQLALCHEMY_ENCODING = "utf8mb4"
SECRET_KEY = "guanzhuoran"
DOMAIN = {
    "www": ""
}
AUTH_COOKIE_NAME = "guanzhuoran"

# 邮箱配置
MAIL_DEBUG = True
MAIL_SERVER = 'smtp.omhgroup.com'  # 邮件服务器的名称/IP地址
MAIL_PORT = 465  # 所用服务器的端口号
MAIL_USERNAME = 'lijia@omhgroup.com'  # 发件人的用户名
MAIL_PASSWORD = 'ljomh123.'  # 发件人的POP3/IMAP/SMTP服务的SSL连接客户端授权码
MAIL_USE_TLS = False  # 禁用传输安全层加密
MAIL_USE_SSL = True  # 启用安全套接字层加密
